/**
 * 
 */
package name.yzhu.httpserver.log;

import javax.servlet.http.HttpServletRequest;

import name.yzhu.httpserver.HttpRequestType;
import name.yzhu.httpserver.HttpReturnData;

/**
 * @author yhzhu
 *
 */
public interface LogHandler {
	/**
	 * 
	 */
	public void begin();
	/**
	 * 
	 */
	public void end();
	/**
	 * 
	 * @param req
	 */
	public void setRequest(HttpServletRequest req);
	/**
	 * 
	 * @param retData
	 */
	public void setRetuData(HttpReturnData retData);
	/**
	 * 
	 * @param type
	 */
	public void setRequestType(HttpRequestType type);
	/**
	 * 
	 * @return
	 */
	public HttpRequestType getRequestType();
	/**
	 * 
	 * @return
	 */
	public LogEntity getLogEntity();
	/**
	 * 
	 * @param entity
	 */
	public void persist(LogEntity entity);
}
